
local pokerlib = require "club.threecard.pokerlib"
local align_helper = pokerlib.core.align_helper

local poker_container_config = {}

local default_hand_align = function(pokers, rootTran)
    align_helper.Align(pokers, rootTran, align_helper.EPivot.middle, 50, 10, 100);
end

local default_config = 
{
    container_res = nil;                                --poker_container 资源对象,没有用库默认资源

    show_hand = true;                                   --是否显示手牌
    ope_valid = true;                                   --是否允许操作手牌

    max_select_count = -1;                              --最多选中个数

    poker_data_class = pokerlib.core.poker_data;  --牌数据类
    hand_poker_class = pokerlib.core.poker;       --手牌类
    chu_poker_class = pokerlib.core.poker;        --出牌类
    ming_poker_class = pokerlib.core.poker;       --明牌类

    hand_sort = function(p1, p2) end;                    --手牌数据排序
    hand_align = default_hand_align;                     --手牌排列
    ming_sort = function(p1, p2) end;                    --明牌数据排序
    ming_align = function(pokers, root) end;             --明牌排列
    chu_sort = function(p1, p2) end;                     --出牌数据排序
    chu_align = default_hand_align;                      --出牌排列

    select_change = nil,                                 --选中状态变更

    mopai_anim = nil;                                    --摸牌动画
}

function poker_container_config.new()
    local self = {}
    return setmetatable(self, {__index = poker_container_config})
end

return setmetatable(poker_container_config, {__index = default_config})